package com.bootdo.system.dao;

import com.bootdo.common.config.DS;
import com.bootdo.system.domain.UserDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.transaction.annotation.Transactional;

/**
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2017-10-03 09:45:11
 */

@Transactional //待测试
@Mapper
public interface UserOldDao {
	
	
	UserDO get(long id);
	
	List<UserDO> list(Map<String,Object> map);
	
	
	List<UserDO> listUser(Map<String,Object> map);
	
    List<UserDO> islistUser(Map<String,Object> map);
    
    List<UserDO> islistAgency(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(UserDO user);
	
	int update(UserDO user);
	
	int updatePhone(UserDO user);
	
	int remove(Long userId);
	
	int batchRemove(Long[] userIds);
	
	Long[] listAllDept();

	int iscount(Map<String,Object> map);
	
	List<UserDO> listAllUser();

	

	

}
